-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font family: switch from CSS Custom Property to classes #31910
Conversation
Size Change: +663 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
Quick check-in with @nosolosw (before I start working on migrations): Are we okay with introducing a new top-level It seemed to me that Furthermore, is it our responsibility to translate the class to a style on the frontend, or is it the theme's to style it accordingly? (I guess it's ours?) Curious to hear your thoughts. |
e3558f2
to
e01c679
Compare
e01c679
to
a72d930
Compare
Worked a bit on this today and this is working. Tasks left are: block deprecations + update tests. |
eb1881f
to
bdddb96
Compare
I've picked up this today and updated the tests. The remaining step is to add block deprecations. |
1cdbc43
to
846e8de
Compare
I've pushed the last bits necessary to land this, and it's ready. |
6e8b1cb
to
19dbeee
Compare
That's correct! It was also what I meant but my English skills are failing me, apparently 👼
Great catch. I was misguided because I checked the lines of those migrations that were actually modified later (to add newer migrations). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went through all newly modified files again (and added two attributes to two deprecations that have been added very recently, i.e. in the past few hours), and verified that the composed deprecations work, as described here and here.
I didn't do another round of manually testing all block deprecations since I think those are covered fine by the fixtures.
Anyway, LGTML! Let's land this 👍 ✨ 🚢 💥
Fixes #31489
This PR switches the font-family property to use class names instead of CSS Custom Properties, following what the other properties do.
How has this been tested?
Block markup changes
Before
After
Screencasts
Before
After
Tasks
style.typography.fontFamily
into a top-levelfontFamily
attribute.